package com.tongji.travelplan.unitstub;

import java.util.ArrayList;

import com.tongji.travelplan.beans.ProvinceBean;
import com.tongji.travelplan.dao.ProvinceDao;

public class testProvince {
	public static void main(String[] args)
	{
		ProvinceBean provinceBean = new ProvinceBean();
		ArrayList<ProvinceBean> aList = new ArrayList<ProvinceBean>();
		ProvinceDao provinceDao = new ProvinceDao();
		aList = provinceDao.getAllProvince();
		//System.out.println(aList.size());
		for(int i = 0; i < aList.size() ; i++)
		{
			provinceBean = aList.get(i);
			System.out.println(provinceBean.getId()+":"+provinceBean.getName()+":"+provinceBean.getInfomation()+
					":"+provinceBean.getCountry().getId()+":"+provinceBean.getCountry().getName()+":"+provinceBean.getCountry().getInfomation());
		}
	}
}
